import Vue from 'vue'
import Router from 'vue-router'
// import Home from '@/pages/home/Home'
// import City from '@/pages/city/City'
// import Detail from '@/pages/detail/Detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/classic'
    },
    {
      path: '/classic',
      name: 'classic',
      component: ()=>import('../pages/classic')
    },
    {
      path: '/book',
      name: 'book',
      component: ()=>import('../pages/book')
    },
    {
      path: '/my',
      name: 'my',
      component: ()=>import('../pages/my')
    },
    {
      path: '/book-detail/:id',
      name: 'book-detail',
      component: ()=>import('../pages/book-detail')
    }
  ]
})